<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ include file="/WEB-INF/jsp/include/common.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<table>
	<tr align='center'>
		<td>	
			<!-- 로그인 상태 -->
			<c:if test="${loginUser != null}">
			
				<a href="<c:url value='/viewCartList.do?userId=${loginUser.userId}'/>">
					<b>장바구니</b>
				</a>
			 	 |  
				<a href="<c:url value='/viewCartList.do'/>">
					<b>주문내역</b>
				</a>
			 	 |  
				<a href="<c:url value='/logout.do'/>">
					<b>로그아웃</b>
				</a>
				
			</c:if>
			
			<!-- 비 로그인 상태 -->
			<c:if test="${loginUser == null}">
				<a href=# onclick="alert('로그인이 필요한 메뉴 입니다.')">
					<b>장바구니</b>
				</a>
				 | 
				<a href=# onclick="alert('로그인이 필요한 메뉴 입니다.')">
					<b>주문내역</b>
				</a>
			</c:if>
			
						
		</td>
	</tr>
</table>